package com.newcoder.huawei;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Zbyd {
    public static void main(String[] args) throws IOException {
        int left, right;
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        String s;
        byte[] ss = new byte[12];
        while ((s = bf.readLine()) != null) {
            byte[] c = s.getBytes();
            int fist = 0;
            int end;
            for (int i = 0; i < c.length; i++) {
                if (c[i] == ';') {
                    end = i;
                    System.arraycopy(c, fist, ss, 0, end - fist);
                    String s1 = new String(ss);
                    fist = i;
                }

            }
        }
    }
}
